package com.bole.feign;

import com.bole.dto.user.DicCarSpecDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface CarSpecFeign {

    @GetMapping("/spec/getSpecInfo")
    List<DicCarSpecDto> getSpecInfo();

    @PostMapping("/spec/saveSpecInfo")
    void saveSpecInfo(@RequestBody DicCarSpecDto dicCarSpecDto);

    @PostMapping("/spec/toUpdate")
    DicCarSpecDto toUpdate(@RequestParam("id") Long id);

    @PostMapping("/spec/updateSpecInfo")
    void updateSpecInfo(@RequestBody DicCarSpecDto dicCarSpecDto);

    @PostMapping("/spec/deleteBatch")
    void deleteBatch(@RequestParam("ides") List<Long> ides);


}